package top.jle.wx.proxy.feign.tool;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = "https://api.weixin.qq.com",name="tool")
public interface ToolAPIFeign {

    @PostMapping("/cgi-bin/qrcode/create")
    JSONObject createQRCode(@RequestBody JSONObject option);

    @PostMapping("/cgi-bin/shorturl")
    JSONObject shortUrl(@RequestBody JSONObject option);
}
